<template>
    <div className="page">
        <div className="pageCenter">

        </div>
    </div>
</template>

<script>
export default {
    data: function () {
        return {
            list: [],
            edit: {show: false, info: {}}
        }
    },
    created() {
        this.fetchData();

    },
    methods: {
        toEdit(index, row) {
            if (row.id !== this.detail.id) {
                this.detail = row
            }
            this.detailShow = true
            this.$forceUpdate()
        },

        /**************** 接口 ****************/
        fetchData() {
            this.request.get({
                url: "dashboard",
                data: {}
            }).then(res => {
                this.list = res.result;
            }, res => {
                this.$message.error(res.msg || "获取数据失败~");
            })
        }
    }
}
</script>

<style scoped>

</style>
